#include"StdAfx.h"
#include"TexEffect.h"

TexEffect::TexEffect( ID3D11Device* device, const std::wstring& filename )
	: EffectBase( device, filename )
{
	m_Tech = m_FX->GetTechniqueByIndex( 0 );

	m_world		= m_FX->GetVariableByName("world")->AsMatrix();
	m_view		= m_FX->GetVariableByName("view")->AsMatrix();
	m_proj		= m_FX->GetVariableByName("proj")->AsMatrix();
	m_texture	= m_FX->GetVariableByName("textureMap")->AsShaderResource();
}

TexEffect::~TexEffect( )
{
}

